HashiCorp Certified: Terraform Associate (003) v1.0

Page:    1 / 7   
Exam contains 93 questions

When you initialize Terraform, where does it cache modules from the public Terraform Registry?

  • A. They are not cached.
  • B. In the /tmp directory.
  • C. In the .terraform sub-directory.
  • D. In memory.


Answer : C

Which Terraform collection type should you use to store key/value pairs?

  • A. map
  • B. tuple
  • C. list
  • D. set


Answer : A

A Terraform backend determines how Terraform loads state and stores updates when you execute which command?

  • A. apply
  • B. destroy
  • C. Bot h of these are correct.
  • D. Neither of these are correct.


Answer : C

It is best practice to store secret data in the same version control repository as your Terraform configuration.

  • A. True
  • B. False


Answer : B

Which of these is true about Terraform’s plugin-based architecture?

  • A. You can create a provider for your API if none exists.
  • B. Terraform can only source providers from the internet.
  • C. All providers are part of the Terraform core binary.
  • D. Every provider in a configuration has its own state file for its resources.


Answer : A

You are using a networking module in your Terraform configuration with the name my_network. Your root module includes the following configuration:

When you run terraform validate, you get the following error:

What must you do to successfully retrieve this value from your networking module?

  • A. Define the attribute vnet_id as a variable in the networking module.
  • B. Change the referenced value to my_network.outputs.vnet_id.
  • C. Change the referenced value to module.my_network.outputs.vnet_id.
  • D. Define the attribute vnet_id as an output in the networking module.


Answer : D

Where in your Terraform configuration do you specify a state backend?

  • A. The data source block
  • B. The terraform block
  • C. The provider block
  • D. The resource block


Answer : B

You can execute terraform fmt to standardize all Terraform configurations within the current working directory to Terraform’s canonical format and style.

  • A. True
  • B. False


Answer : A

The Terraform binary version and provider versions must match each other in a single configuration.

  • A. True
  • B. False


Answer : B

Multiple team members are collaborating on infrastructure using Terraform and want to format their Terraform code following standard Terraform style convention.
How should they ensure the code satisfies conventions?

  • A. Use terraform fmt.
  • B. Terraform automatically formats configuration on terraform apply.
  • C. Run terraform validate prior to executing terraform plan or terraform apply.
  • D. Replace all tabs with spaces.


Answer : A

Terraform can only manage resource dependencies if you set them explicitly with the depends_on argument.

  • A. True
  • B. False


Answer : B

You decide to move a Terraform state file to Amazon S3 from another location. You write the code shown in the Exhibit space into a file called backend.tf.

Which command will migrate your current state file to the new S3 backend?

  • A. terraform refresh
  • B. terraform init
  • C. terraform push
  • D. terraform state


Answer : B

Terraform encrypts sensitive values stored in your state file.

  • A. True
  • B. False


Answer : B

You have declared a variable called var.list which is a list of objects that all have an attribute id . Which options will produce a list of the IDs? (Choose two.)

  • A. [ for o in var.list : o.id ]
  • B. var.list[*].id
  • C. [ var.list[*].id ]
  • D. { for o in var.list : o => o.id }


Answer : A

You need to deploy resources into two different regions in the same Terraform configuration. To do this, you declare multiple provider configurations as shown in the Exhibit space on this page.

What meta-argument do you need to configure in a resource block to deploy the resource to the us-west-2 AWS region?

  • A. provider = west
  • B. alias = west
  • C. provider = aws.west
  • D. alias = aws.west


Answer : C

Page:    1 / 7   
Exam contains 93 questions

Talk to us!


Have any questions or issues ? Please dont hesitate to contact us

Certlibrary.com is owned by MBS Tech Limited: Room 1905 Nam Wo Hong Building, 148 Wing Lok Street, Sheung Wan, Hong Kong. Company registration number: 2310926
Certlibrary doesn't offer Real Microsoft Exam Questions. Certlibrary Materials do not contain actual questions and answers from Cisco's Certification Exams.
CFA Institute does not endorse, promote or warrant the accuracy or quality of Certlibrary. CFA® and Chartered Financial Analyst® are registered trademarks owned by CFA Institute.
Terms & Conditions | Privacy Policy